#ifndef INCLUDE_APHW_KEY_HPP
#define INCLUDE_APHW_KEY_HPP

#include <boost/shared_ptr.hpp>
#include <ham/hamsterdb.h>

namespace aphw
{

class Key
{
public:
    Key();
    Key(unsigned long);

    unsigned int value() const;
    int approximateMatchType() const;
    
    ham_key_t* key();

private:
    void init();
    
    unsigned long key_value_;
    ham_key_t key_;
};

void init_Key();

}

#endif
